package ee.nlp.evn.entities;

import java.util.ArrayList;
import java.util.List;

public class OP {
	private String name;
	private List<POS> words;
	public OP(String pName) {
		setName(pName);
		this.words = new ArrayList<POS>();
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name Only names "Perm" and "Seq" have meaning in this context. 
	 * If name is something else then "Seq" will be used.
	 */
	public void setName(String name) {
		if ("Perm".equals(name)) {
			this.name = name;
		} else {
			this.name = "Seq";
		}
	}
	/**
	 * @return the words
	 */
	public List<POS> getWords() {
		return words;
	}
	/**
	 * @param words the words to set
	 */
	public void addWord(POS word) {
		this.words.add(word);
	}
}
